{% extends 'base.html' %}
{% load filters %}
{% load tags %}
{% block title %}3kkk-me{% endblock %}

{% block description %}{% space_line_less %}
    {% for post in post_list %}
        **{{ post.title|addslashes }}**
    {% endfor %}
{% endspace_line_less %}{% endblock %}



{% block content %}
<div id="postslist">
    {% for post in post_list %}
    <div class="post" id="post-{{ post.key }}">
      <div class="title">
        <h2><a href="{{ settings.BASE_URL }}/p/{{ post.key }}/" rel="bookmark" title="Permanent Link to {{ post.title|addslashes }}">{{ post.title }}</a></h2>
        <small><a href="{{ settings.BASE_URL }}/p/{{ post.key }}/#respond" title="{{ post.title|addslashes }} 上的评论">{% if post.comment_count %}{{ post.comment_count }}{% else %}No{% endif %} Comments</a>. Posted by {{ settings.BLOG_AUTHOR }} on {{ post.add_time|format_time }}. </small>
      </div>
      <div class="entry">
        {% if post.summary %}
            {{ post.summary|process_html_show|safe }}
            <br />
            <h1> <a title="继续阅读>> {{ post.title|addslashes }}" href="{{ settings.BASE_URL }}/p/{{ post.key }}/#more" class="more-link">More »</a></h1>
        {% else %}
            {{ post.content|process_html_show|safe }}
        {% endif %}

        
      </div>
      <!-- <p class="postmeta">postmeta</p> -->
    </div>
    {% endfor %}
    
    <div class="navigation">
      <div class="alignleft">
      
        共{{ pager.total }}篇

          {% if pager.show_pre %}
          <a href="{{ settings.BASE_URL }}/{{ pager.page|add:"-1" }}/">上一页</a>
          {% else %}
          <span>上一页</span>
          {% endif %}

          {% if pager.show_first %}
          <a href="{{ settings.BASE_URL }}/">1</a>...
          {% endif %}

          {% for p in pager.page_list %}
            {% ifequal p pager.page %}
            <span>{{ pager.page }}</span>
            {% else %}
            <a href="{{ settings.BASE_URL }}/{{ p }}/">{{ p }}</a>
            {% endifequal %}
          {% endfor %}

          {% if pager.show_end %}
          ...<a href="{{ settings.BASE_URL }}/{{ pager.pageCount }}/">{{ pager.pageCount }}</a>
          {% endif %}

          {% if pager.show_next %}
          <a href="{{ settings.BASE_URL }}/{{ pager.page|add:"1" }}/">下一页</a>
          {% else %}
          <span>下一页</span>
          {% endif %}

      </div>
      <div class="alignright">
      
      </div>
      <div style="clear: both;"></div>
    </div>
</div>


{% endblock %} 